const express=require('express')

const router=express.Router()


const homeData=require("./data/home/hotdata")

const searchData=require("./data/search/seachdata")


const  detailsData=require('./data/details/detailsdata')

//home数据
router.get('/api/home',(req,res)=>{
    res.send(homeData)
})




//搜索接口数据
router.get('/api/search',(req,res)=>{
    
    res.send(searchData)
})

//详情接口数据
router.get('/api/details',(req,res)=>{
    res.send(detailsData)
})




router.get('/api/list',(req,res)=>{
    res.send({
        name:'list',
        desc:'我是list组件'
        
    })
})






module.exports=router


